<template>
  <div class="topNav">
    <div class="topLeft">
      <svg class="icon" aria-hidden="true">
        <use xlink:href="#icon-home-4-line"></use>
      </svg>
    </div>
    <div class="topContent">
      <span>我的</span>
      <span>首页</span>
    </div>
    <div class="topRight">
      <svg class="icon" aria-hidden="true" @click="$router.push('/search')">
        <use xlink:href="#icon-sousuo"></use>
      </svg>
    </div>
  </div>
</template>
<style lang="less">
.topNav {
  height: 1rem;
  width: 100%;
  padding: 0.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  .topContent {
    width: 70%;
    display: flex;
    height: 100%;
    // align-items: center;
    justify-content: space-around;
    font-size: 0.36rem;
    span {
      height: 100%;
      width: 20%;
      text-align: center;
      border: 1px solid black;
      border-radius: 30%;
    }
  }
}
</style>
